package com.woniuxy.finance.dao;

import com.woniuxy.finance.entity.Deal;
import com.woniuxy.finance.entity.Transfer;

import java.math.BigDecimal;
import java.util.List;

/**
 * @ClassName TransferDao
 * @Description TODO
 * @Author Administrator
 * @Date 2022/6/10 14:35
 * @Version 1.0
 */
public interface TransferDao {

    List<Transfer> findAll();

    List<Transfer> findAllByWeek();
    
    List<Transfer> findAllByMonth();

    List<Transfer> findAllByDate(String date);

    void updateOne(Transfer transfer);
    //转账金额
    BigDecimal sumAmount();
    //转账次数
    int timeTransfer();
}
